package com.hyk.entity.response;

import com.hyk.entity.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @Author: chen
 * @Date: 2021/3/16 2:46 PM
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Menu对象map", description="")
public class Permission {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "注解")
    private Long id;

    @ApiModelProperty(value = "菜单的名称")
    private String name;

    @ApiModelProperty(value = "多少级别的菜单")
    private Integer type;

    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "0:菜单，1:按钮")
    private Integer isButton;

    @ApiModelProperty(value = "所对应的接口是什么")
    private String path;

    private Date createTime;

    private Date updateTime;

    private List<Role> roles;
}
